package com.hightrast.service.controller;


import com.hightrast.service.api.baseEntity.R;
import com.hightrast.service.api.domain.qo.rastVendor.QueryRastVendorsQo;
import com.hightrast.service.api.domain.vo.rastVendor.QueryRastVendorsVo;
import com.hightrast.service.service.IRastVendorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户角色关联表 前端控制器
 * </p>
 *
 * @author hx
 * @since 2025-01-11
 */
@RestController
@RequestMapping("/api/rast-user-vendor")
@Api(tags = "用户品牌")
public class RastVendorController {

    @Resource
    IRastVendorService vendorService;

    @ApiOperation("获取品牌列表")
    @PostMapping("/getVendorList")
    public R<List<QueryRastVendorsVo>> getVendorList(QueryRastVendorsQo qo) {
        return R.data(vendorService.queryVendors(qo));
    }
}
